<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../obtenerDetalleRequisito.wsdl"/>
      <rootElement name="ViSicevenatriCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDetalleRequisito"/>
    </source>
    <source type="WSDL">
      <schema location="../datosRequisito.wsdl"/>
      <rootElement name="ViSicevendocuCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/datosRequisito"/>
      <param name="dtaosRequisito_OutputVariable.ViSicevendocuCollection" />
    </source>
    <source type="WSDL">
      <schema location="../obtenerDocumentoBinarioDA.wsdl"/>
      <rootElement name="ViSicevendocubinaCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDocumentoBinarioDA"/>
      <param name="obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection" />
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../swObtenerDetalleRequisito.wsdl"/>
      <rootElement name="OBTENERDETALLEREQUISITOMR" namespace="http://mincetur.gob.pe/SIC/expediente/obtenerDetalleRequisito"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [MON MAY 27 18:41:06 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDocumentoBinarioDA"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:client="http://mincetur.gob.pe/SIC/expediente/swObtenerDetalleRequisito"
                xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDetalleRequisito"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns5="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:ns6="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ns4="http://mincetur.gob.pe/SIC/expediente/obtenerDetalleRequisito"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/datosRequisito"
                xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleRequisito/datosRequisito"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleRequisito/obtenerDetalleRequisito"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleRequisito/obtenerDocumentoBinarioDA"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns3 top plt wsdl ns1 ns0 tns xsd ns2 client ns5 ns6 ns4 xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:param name="dtaosRequisito_OutputVariable.ViSicevendocuCollection"/>
  <xsl:param name="obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection"/>
  <xsl:template match="/">
    <ns4:OBTENERDETALLEREQUISITOMR>
      <ns4:REQUISITOSEVENTO>
        <xsl:attribute name="ID_EVEN">
          <xsl:value-of select="$dtaosRequisito_OutputVariable.ViSicevendocuCollection/ns1:ViSicevendocuCollection/ns1:ViSicevendocu/ns1:idEven"/>
        </xsl:attribute>
        <xsl:attribute name="ID_STIPODOCU">
          <xsl:value-of select="$dtaosRequisito_OutputVariable.ViSicevendocuCollection/ns1:ViSicevendocuCollection/ns1:ViSicevendocu/ns1:idStipodocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_DOCU">
          <xsl:value-of select="$dtaosRequisito_OutputVariable.ViSicevendocuCollection/ns1:ViSicevendocuCollection/ns1:ViSicevendocu/ns1:desDocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_TITULO">
          <xsl:value-of select="$dtaosRequisito_OutputVariable.ViSicevendocuCollection/ns1:ViSicevendocuCollection/ns1:ViSicevendocu/ns1:desTitulo"/>
        </xsl:attribute>
        <xsl:attribute name="COD_IDEN">
          <xsl:value-of select="$dtaosRequisito_OutputVariable.ViSicevendocuCollection/ns1:ViSicevendocuCollection/ns1:ViSicevendocu/ns1:codIden"/>
        </xsl:attribute>
        <xsl:attribute name="ID_TIPOIDEN">
          <xsl:value-of select="$dtaosRequisito_OutputVariable.ViSicevendocuCollection/ns1:ViSicevendocuCollection/ns1:ViSicevendocu/ns1:idTipoiden"/>
        </xsl:attribute>
        <ns4:REQUISITOS>
          <xsl:for-each select="/top:ViSicevenatriCollection/top:ViSicevenatri">
            <ns4:REQUISITO>
              <xsl:attribute name="ID_TATRI">
                <xsl:value-of select="top:idTatri"/>
              </xsl:attribute>
              <xsl:attribute name="DES_TATRI">
                <xsl:value-of select="top:desTatri"/>
              </xsl:attribute>
              <xsl:attribute name="DES_ETIQUETA">
                <xsl:value-of select="top:desEtiqueta"/>
              </xsl:attribute>
              <xsl:attribute name="VAL_TATRI">
                <xsl:value-of select="top:valTatri"/>
              </xsl:attribute>
              <xsl:attribute name="COD_TIPODATO">
                <xsl:value-of select="top:codTipodato"/>
              </xsl:attribute>
              <xsl:attribute name="COD_SELECTOR">
                <xsl:value-of select="top:codSelector"/>
              </xsl:attribute>
              <xsl:attribute name="COD_NOMBTABLA">
                <xsl:value-of select="top:codNombtabla"/>
              </xsl:attribute>
              <xsl:attribute name="COD_TATRI">
                <xsl:value-of select="top:codTatri"/>
              </xsl:attribute>
              <xsl:attribute name="FLG_ESTADO">
                <xsl:value-of select="top:flgEstado"/>
              </xsl:attribute>
              <xsl:attribute name="ID_DOCU">
                <xsl:value-of select="top:idDocu"/>
              </xsl:attribute>
              <xsl:attribute name="ID_TIPOIDENDOCU">
                <xsl:value-of select="top:idTipoidendocu"/>
              </xsl:attribute>
              <xsl:attribute name="COD_IDENDOCU">
                <xsl:value-of select="top:codIdendocu"/>
              </xsl:attribute>
              <xsl:attribute name="FLG_OBLIG">
                <xsl:value-of select="top:flgOblig"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_ORDEN">
                <xsl:value-of select="top:numOrden"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_TAMAMAXI">
                <xsl:value-of select="top:numTamamaxi"/>
              </xsl:attribute>
              <xsl:attribute name="FLG_ENVIMANU">
                <xsl:value-of select="top:flgEnvimanu"/>
              </xsl:attribute>
              <xsl:attribute name="COD_PARA">
                <xsl:value-of select="top:codPara"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_PIXE">
                <xsl:value-of select="top:numPixe"/>
              </xsl:attribute>
              <xsl:attribute name="DES_NOTAS">
                <xsl:value-of select="top:desNotas"/>
              </xsl:attribute>
              <xsl:attribute name="DES_URLAYUD">
                <xsl:value-of select="top:desURLayud"/>
              </xsl:attribute>
            </ns4:REQUISITO>
          </xsl:for-each>
        </ns4:REQUISITOS>
        <ns4:DOCUMENTO>
          <xsl:attribute name="DES_TITULO">
            <xsl:value-of select="$obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection/ns3:ViSicevendocubinaCollection/ns3:ViSicevendocubina/ns3:desTitulo"/>
          </xsl:attribute>
          <xsl:attribute name="ID_DOCU">
            <xsl:value-of select="$obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection/ns3:ViSicevendocubinaCollection/ns3:ViSicevendocubina/ns3:idDocu"/>
          </xsl:attribute>
          <xsl:attribute name="DES_DOCUMENTO">
            <xsl:value-of select="$obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection/ns3:ViSicevendocubinaCollection/ns3:ViSicevendocubina/ns3:desDocu"/>
          </xsl:attribute>
          <xsl:attribute name="ID_STIPODOCU">
            <xsl:value-of select="$obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection/ns3:ViSicevendocubinaCollection/ns3:ViSicevendocubina/ns3:idStipodocu"/>
          </xsl:attribute>
          <xsl:attribute name="DES_NOTAS">
            <xsl:value-of select="$obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection/ns3:ViSicevendocubinaCollection/ns3:ViSicevendocubina/ns3:desNotas"/>
          </xsl:attribute>
          <xsl:for-each select="$obtenerDocumentoBinario_OutputVariable.ViSicevendocubinaCollection/ns3:ViSicevendocubinaCollection/ns3:ViSicevendocubina">
            <ns5:DOCUMENTOBINARIO>
              <xsl:attribute name="COD_DOCUBINA">
                <xsl:value-of select="ns3:codDocubina"/>
              </xsl:attribute>
              <xsl:attribute name="DES_LOCAURI">
                <xsl:value-of select="ns3:desLocauri"/>
              </xsl:attribute>
              <xsl:attribute name="DES_NOMBREAL">
                <xsl:value-of select="ns3:desDocuBinario"/>
              </xsl:attribute>
              <xsl:attribute name="DES_LOCACACHE">
                <xsl:value-of select="ns3:desTituloBinario"/>
              </xsl:attribute>
              <xsl:attribute name="DES_FEC_CREACION">
                <xsl:value-of select="ns3:desTituloBinario"/>
              </xsl:attribute>
              <xsl:attribute name="ID_EXTEDOCU">
                <xsl:value-of select="ns3:idExtedocu"/>
              </xsl:attribute>
              <xsl:attribute name="ID_LENGDOCU">
                <xsl:value-of select="ns3:idLengdocu"/>
              </xsl:attribute>
              <xsl:attribute name="ID_TRELADOCU">
                <xsl:value-of select="ns3:idTreladocu"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_BYTES">
                <xsl:value-of select="ns3:numBytes"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_FOLIOS">
                <xsl:value-of select="ns3:numFolios"/>
              </xsl:attribute>
            </ns5:DOCUMENTOBINARIO>
          </xsl:for-each>
        </ns4:DOCUMENTO>
      </ns4:REQUISITOSEVENTO>
      <ns4:ERROR>
        <xsl:attribute name="ID_ERROR">
          <xsl:text disable-output-escaping="no">0</xsl:text>
        </xsl:attribute>
      </ns4:ERROR>
    </ns4:OBTENERDETALLEREQUISITOMR>
  </xsl:template>
</xsl:stylesheet>
